package com.bfly.mall.admin.dto;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 系统菜单表单DTO
 *
 * @author 长沙商脉科技有限公司
 * @date 2019/7/12 18:30
 */
public class MenuFormDTO implements Serializable {

    private static final long serialVersionUID = 1460426659728753311L;
    private int id;
    @NotBlank(message = "菜单名称不能为空")
    private String name;
    private String url;
    private String permission;
    private int seq;
    private int parentId;
    private boolean action;
    private String icon;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public boolean isAction() {
        return action;
    }

    public void setAction(boolean action) {
        this.action = action;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
